const Router = require('@koa/router')
const router = new Router({
  prefix: '/api/v1/category'
})
const categoryController = require('../controllers/categoryController')

// 分类相关路由
router.post('/create', categoryController.create)
router.post('/update', categoryController.update)
router.get('/delete', categoryController.delete)
router.get('/findOne', categoryController.findOne)
router.get('/findAll', categoryController.findAll)

module.exports = router